package Hwork;

import static java.lang.Math.abs;

class PointDemo{
    public int distance(int p1, int p2){
        int c= (int) abs(Math.sqrt(p1*p1+p2*p2));
        return c;
    }
    public class Point{
        public int x;
        public int y;
    }

public static class work2 {

    public static void main(String[] args) {
        PointDemo G=new PointDemo();
        System.out.println(G.distance(4,6));

    }
}

}
